﻿@model User.Web.Models.Admin.MemberEditAdminModel

@{
    ViewBag.Title = PageTitles.EditMember;
}

<div class="row">
    <div class="col-lg-12">
        @Html.ShowCustomMessage()
    </div>
</div>

@using (Html.BeginForm("MemberEditAdmin", "Admin", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">

                <div class="panel-heading">
                    <h4>@ViewBag.Title</h4>
                </div>

                <div class="panel-body">
                    <div class="form-group">
                        @Html.LabelFor(model => model.Username, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            <p class="form-control-static">@Model.Username</p>
                            @Html.HiddenFor(model => model.Username)
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(model => model.MemberTitle, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            @Html.DropDownListFor(model => model.MemberTitle, Model.MemberTitles, DefaultMessages.PleaseSelectItems, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.MemberTitle)
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(model => model.Firstname, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            @Html.EditorFor(model => model.Firstname)
                            @Html.ValidationMessageFor(model => model.Firstname)
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(model => model.Lastname, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            @Html.EditorFor(model => model.Lastname)
                            @Html.ValidationMessageFor(model => model.Lastname)
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(model => model.Mobilenumber, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            @Html.EditorFor(model => model.Mobilenumber)
                            @Html.ValidationMessageFor(model => model.Mobilenumber)
                        </div>
                    </div>
                    
                    <div class="form-group">
                        @Html.LabelFor(model => model.IsActiveAccount, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            @Html.EditorFor(model => model.IsActiveAccount)
                            @Html.ValidationMessageFor(model => model.IsActiveAccount)
                        </div>
                    </div>

                </div>
                <div class="panel-footer">
                    <div class="form-group">
                        <div class="col-md-offset-2 col-md-10">
                            <input type="submit" class="btn btn-primary" value="@ControlNames.Save" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
}

<hr />

<div class="row">
    <div class="col-lg-12">
        @Html.ActionLink(ControlNames.Home, "Index", "Home", null, new { @class = "btn btn-default" })

        @Html.ActionLink(ControlNames.UserList, "MemberList", "Admin", null, new { @class = "btn btn-default" })

        @Html.ActionLink(ControlNames.Details, "MemberDetails", "Admin", new { id = Model.Id }, new { @class = "btn btn-default" })

        @Html.ActionLink(ControlNames.UserRights, "MemberRights", "Admin", new { id = Model.Id }, new { @class = "btn btn-default" })
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}




